package top.tungsword.webconsole.controller.main;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.tungsword.webconsole.interceptor.Authority;

@Controller
@RequestMapping("/")
public class ErrorController {

    @GetMapping("/error")
    @Authority
    public String error(){
        return "/error";
    }
}
